package com.weetop.cfw.bean;

import java.util.List;

public class AudioVideoDetailBean extends ErrorBean {


    /**
     * title : 体育课程One
     * imgurl : /Upload/image/202003/20200316113212_7241.jpg
     * author : 丁秋雷
     * furl :
     * mprice : 30.00
     * sprice : 15.50
     * content : 这是一门体育课程啊
     * playnum : 0
     * data : [{"tfid":1,"title":"体育课程章节一","vfurl":"b.mp4","vftime":"10"},{"tfid":3,"title":"体育课程章节二","vfurl":"b.mp4","vftime":"12"},{"tfid":4,"title":"体育课程章节三","vfurl":"b.mp4","vftime":"10"}]
     */

    private String title;
    private String imgurl;
    private String author;
    private String furl;
    private String mprice;
    private String sprice;
    private String content;
    private String playnum;
    private List<DataBean> data;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getFurl() {
        return furl;
    }

    public void setFurl(String furl) {
        this.furl = furl;
    }

    public String getMprice() {
        return mprice;
    }

    public void setMprice(String mprice) {
        this.mprice = mprice;
    }

    public String getSprice() {
        return sprice;
    }

    public void setSprice(String sprice) {
        this.sprice = sprice;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPlaynum() {
        return playnum;
    }

    public void setPlaynum(String playnum) {
        this.playnum = playnum;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "AudioVideoDetailBean{" +
                "title='" + title + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", author='" + author + '\'' +
                ", furl='" + furl + '\'' +
                ", mprice='" + mprice + '\'' +
                ", sprice='" + sprice + '\'' +
                ", content='" + content + '\'' +
                ", playnum='" + playnum + '\'' +
                ", data=" + data +
                '}';
    }

    public static class DataBean {
        /**
         * tfid : 1
         * title : 体育课程章节一
         * vfurl : b.mp4
         * vftime : 10
         */

        private int tfid;
        private String title;
        private String vfurl;
        private String vftime;
        private boolean isPlaying;
        private boolean isFinished;//是否已完成课程的学习 true:已完成 false:没有完成

        public boolean isFinished() {
            return isFinished;
        }

        public void setFinished(boolean finished) {
            isFinished = finished;
        }

        public boolean isPlaying() {
            return isPlaying;
        }

        public void setPlaying(boolean playing) {
            isPlaying = playing;
        }

        public int getTfid() {
            return tfid;
        }

        public void setTfid(int tfid) {
            this.tfid = tfid;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getVfurl() {
            return vfurl;
        }

        public void setVfurl(String vfurl) {
            this.vfurl = vfurl;
        }

        public String getVftime() {
            return vftime;
        }

        public void setVftime(String vftime) {
            this.vftime = vftime;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "tfid=" + tfid +
                    ", title='" + title + '\'' +
                    ", vfurl='" + vfurl + '\'' +
                    ", vftime='" + vftime + '\'' +
                    ", isPlaying=" + isPlaying +
                    ", isFinished=" + isFinished +
                    '}';
        }
    }
}
